import request from '@/utils/request'

// 电子证照列表
const electronicCertificationList = function (params = {}) {
  return request({
    url: '/zy-api/api/ecMaininfo/findList',
    method: 'post',
    data: params
  })
}

// 获取发证机关选项
const orgNmOptions = function (params = {}) {
  return request({
    url: '/zy-api/api/elicense/getOrgNm',
    method: 'post',
    data: params
  })
}

// 新增
const addElectronicCertification = function (params = {}) {
  return request({
    url: '/zy-api/api/ecMaininfo/add',
    method: 'post',
    data: params
  })
}

// 修改
const editElectronicCertification = function (params = {}) {
  return request({
    url: '/zy-api/api/ecMaininfo/update',
    method: 'post',
    data: params
  })
}

// 删除
const delElectronicCertification = function (params = {}) {
  return request({
    url: '/zy-api/api/ecMaininfo/delete',
    method: 'post',
    data: params
  })
}

// 审核、退回
const auditElectronicCertification = function (params = {}) {
  return request({
    url: '/zy-api/api/ecMaininfo/Review',
    method: 'post',
    data: params
  })
}

// 取水用途选项
const watUseOptions = function (params = {}) {
  return request({
    url: '/zy-api/api/ecMaininfo/getWatUseList',
    method: 'post',
    data: params
  })
} 

export {
  electronicCertificationList,
  orgNmOptions,
  addElectronicCertification,
  editElectronicCertification,
  delElectronicCertification,
  auditElectronicCertification,
  watUseOptions
}